package com.design.designmode.action.vistor;

/**
 * @author hxl
 * @since 2023-04-18
 */
public abstract class Person {
    private String name;
    private int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public abstract void accept(Visitor visitor);

}
